package com.chris.design.pattern.samples.chain;

/**
 * @author Chris
 */
public class ConcreteHandler extends AbstractHandler {

    @Override
    public void handleRequest() {
        if (getHandler() != null) {
            System.out.println("放过请求");
            getHandler().handleRequest();
        } else {
            System.out.println("处理请求");
        }
    }
}
